<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body>div{
            color: red;
        }
        #d1{
            color: green;
        }
        span{
            /*!important 设置当前样式的优先级为最高*/
            color: blue !important;
        }
        #s1{
            color: pink;
        }
    </style>
</head>
<body>
<div id="d1">
    <p>这是个p标签</p>
    <span id="s1">这是个span</span>
    <span>这是第二个span</span>
    <a href="">超链接</a>
    <div><p>这也是p标签</p></div>
</div>
</body>
</html>